home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Embed / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.6 KB  |  94 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PART_H
  13. #define PART_H
  14.  
  15. // ----- Framework Includes -----
  16.  
  17. #ifndef FWPARTNG_H
  18. #include "FWPartng.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward class declaration
  23. //========================================================================================
  24.  
  25. class FW_CPresentation;
  26. class CEmbedFrame;
  27. class CEmbedProxy;
  28. class CEmbedSelection;
  29. class CEmbedContent;
  30.  
  31. //========================================================================================
  32. //    CLASS CEmbedPart
  33. //========================================================================================
  34.  
  35. class CEmbedPart : public FW_CEmbeddingPart
  36. {
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/Destruction
  39. //
  40.   public:
  41.     FW_DECLARE_AUTO(CEmbedPart)
  42.     
  43.     CEmbedPart(ODPart* odPart);
  44.     virtual void Initialize(Environment* ev, ODStorageUnit* storageUnit, FW_Boolean fromStorage);
  45.     
  46.     virtual ~CEmbedPart();
  47.         
  48. //----------------------------------------------------------------------------------------
  49. //    Inherited API
  50. //
  51.   public:
  52.     virtual FW_CFrame*             NewFrame(Environment* ev,
  53.                                     ODFrame* odFrame, 
  54.                                     FW_CPresentation* presentation,
  55.                                     FW_Boolean fromStorage);
  56.  
  57.     virtual FW_CContent*         NewPartContent(Environment* ev);
  58.  
  59.     virtual FW_Handled            DoMenu(Environment* ev, 
  60.                                     const FW_CMenuEvent& theMenuEvent);
  61.     virtual FW_Handled            DoAdjustMenus(Environment* ev, 
  62.                                     FW_CMenuBar* menuBar, 
  63.                                     FW_Boolean hasMenuFocus,
  64.                                     FW_Boolean isRoot);
  65.     virtual FW_Handled            DoAbout(Environment* ev);
  66.                                      
  67. //----------------------------------------------------------------------------------------
  68. //    New API
  69. //
  70. public:
  71.     void                        ChangeEmbeddedFacets(Environment* ev, 
  72.                                     ODCommandID facetNumber);
  73.     
  74.     FW_CPresentation*            GetPresentation() const
  75.                                     {return fPresentation;}
  76.     ODCommandID                    FacetNumber() const
  77.                                     {return fFacetNumber;}
  78.     short                        GetRotation() const
  79.                                     {return fRotation;}
  80.                                                                 
  81. //----------------------------------------------------------------------------------------
  82. //    Data Members
  83. //
  84. private:
  85.     FW_CPresentation*    fPresentation;
  86.     CEmbedContent*        fEmbedContent;
  87.     ODCommandID            fFacetNumber;
  88.     short                fRotation;
  89.  
  90.  
  91. };
  92.  
  93. #endif
  94.